import os
import shutil

def OperationMakeSame(src_path, dst_path, filename, is_src):
  if (is_src):
    f = os.path.join(src_path, filename)
    if (os.path.isdir(f)):
      shutil.copytree(f, os.path.join(dst_path, filename))
    else:
      shutil.copy2(f, dst_path)
  else:
    f = os.path.join(dst_path, filename)
    if (os.path.isdir(f)):
      shutil.rmtree(f)
    else:
      os.remove(f)

